package com.xhwl.logistics.converter.mapstruct;


import com.xhwl.logistics.dto.http.ParkingLotInfoChuangXiangDTO;
import com.xhwl.logistics.entity.VehicleArea;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.NullValueMappingStrategy;

/**
 * 将第三方的区域信息转换为中台的区域信息
 */
@Mapper(componentModel = "spring", nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT)
public interface VehicleAreaThirdConverter {


    /**
     * 将创享的区域信息转换为中台的区域信息
     */
    @Mapping(target = "areaName",constant = "区域一")
    @Mapping(target = "carportTotalNumber",source = "parkingLotInfoChuangXiangDTO.carBitum")
    @Mapping(target = "thirdAreaId",constant = "")
    VehicleArea chuangXiangtoVehicleArea(ParkingLotInfoChuangXiangDTO parkingLotInfoChuangXiangDTO,Integer parkingLotId);
}
